import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
// 导入路由模块
import router from "./router/index.js";

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 导入语言
import locale from 'element-plus/lib/locale/lang/zh-cn'

let app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus, {locale});

// 注册路由实例
app.use(router);

app.mount('#app')
